import http from "@/utils/request";

export default {

  async getMenuList(params) {
    return await http.get("/api/permission/selectList", params)
  },
  async getParentMenuList(params) {
    return await http.get("/api/permission/selectParentList", params)
  },
  async addMenu(params) {
    return await http.post("/api/permission/insert", params)
  },
  async updateMenu(params) {
    return await http.put("/api/permission/update", params)
  },
  async checkPermission(params) {
    return await http.getRestApi("/api/permission/check", params)
  },
  async deleteById(params) {
    return await http.delete("/api/permission/delete", params)
  }

}
